// 商品分类管理
import request from '@/utils/request'
const MenuMessage = {
  //分页条件查询
  queryPageByCondition (data) {
    return request({
      url: '/socialized-system/menu/queryPageByCondition',
      method: 'post',
      data
    })
  },
  //条件查询
  queryByCondition (data) {
    return request({
      url: '/socialized-system/menu/queryByCondition',
      method: 'post',
      data
    })
  },
  //新增
  add (data) {
    return request({
      url: '/socialized-system/menu/add',
      method: 'post',
      data
    })
  },
  //编辑
  edit (data) {
    return request({
      url: '/socialized-system/menu/edit',
      method: 'put',
      data
    })
  },
  //删除
  del (id) {
    return request({
      url: `/socialized-system/menu/del?id=${id}`,
      method: 'delete'
    })
  },
  //批量删除
  delList (idList) {
    return request({
      url: `/socialized-system/menu/delList?idList=${idList}`,
      method: 'delete',
    })
  },
}
export default MenuMessage




